Skip to content

Fix invalid regex escape warnings#462

Draft
Mirochill wants to merge 1 commit into
ELELAB:mainfrom
Mirochill:fix-391-invalid-escapes
Draft

Fix invalid regex escape warnings#462
Mirochill wants to merge 1 commit into
ELELAB:mainfrom
Mirochill:fix-391-invalid-escapes

Conversation

@Mirochill
Copy link
Copy Markdown

Summary:

  • Fixes Invalid escape sequence warnings #391.
  • Converts the four reported regex patterns in mavisp/modules.py to raw strings.
  • Preserves the existing regex behavior while avoiding Python invalid escape sequence warnings.

Validation:

  • git diff --check
  • Targeted rg check for the reported escaped patterns in mavisp/modules.py

Not run locally: test suite.

Use raw strings for the regular expressions reported in issue ELELAB#391 so Python no longer emits invalid escape sequence warnings while preserving the existing regex patterns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid escape sequence warnings

1 participant